import Taro from '@tarojs/taro'
import React from 'react'
import { AtListItem } from 'taro-ui'

class DepartmentListPart extends React.Component{
  
  handleChange = ()=>{
    const page = '/pages/pagesA/selectByDept/selectByDept?department='+this.props.department
      Taro.navigateTo({url: page})
  }

    render(){    
      return(
        <AtListItem title={this.props.department} onClick={this.handleChange}/>
      )
    }
}

export {DepartmentListPart}